number theory problem